package com.papers.common.constant;

import java.util.regex.Pattern;

/**
 * 试卷常量类
 *
 * @author libo
 * @date 2022/11/11 9:47
 */
public class PaperConstants {

    /**
     * 试卷名称正则
     */
    public static final Pattern PAPER_NAME_PATTERN = Pattern.compile(".{1,255}");

    /**
     * 试卷描述正则
     */
    public static final Pattern PAPER_DES_PATTERN = Pattern.compile(".{0,255}");

    /**
     * 注意事项正则
     */
    public static final Pattern PAPER_ATTENTION_PATTERN = Pattern.compile(".{0,900}");

    /**
     * 试卷总分正则
     */
    public static final Pattern PAPER_TOTAL_SCORE_PATTERN = Pattern.compile("^[+]?\\d{1,10}$");

    /**
     * 考试时长正则
     */
    public static final Pattern PAPER_TIME_PATTERN = Pattern.compile("^[+]?\\d{1,10}$");

}
